import request from '@/utils/request'

// 查询主页图片列表
export function get_image(query) {
    return request({
        url: '/pv/home_image',
        method: 'get'
    })
}

// 修改主页图片
export function update_image(file) {
  //组装参数
  let form = new FormData();
  form.append("file",file.raw)
    return request({
      url: '/pv/home_image',
      timeout: 1000 * 60,
      method: 'put',
      data: form,
      headers: {"Content-Type": "multipart/form-data; charset=utf-8"},
      contentType: false,
      processData: false,
      withCredentials: false
    })
}
